package com.dl.tt.service;

import com.dl.tt.pojo.Dept;
import com.dl.tt.pojo.Emp;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 * @author 47
 * @version 1.0
 */
public interface EmpService {
    Emp findEmpByAccountNameAndPassword(String accountName,String password);
    List<Emp> findAllRegister();
    Integer passEmp(int empNo);
    Integer deleteEmp(int empNo);
    List<Dept> findDept();
    Integer addDept(String deptName);
    Integer addEmp(Emp emp);
    Integer changePassword(String accountName,String password);
    // 实现分页
    PageInfo<Emp> findAllByEmpAndPage(int pageNum,int PageSize,Emp emp);
    //
    Integer changeDeptName(Integer deptNo,String deptName);
}
